package com.linkage.educloud.ah.bean;

import java.io.Serializable;
import org.json.JSONException;
import org.json.JSONObject;


/**
 * 班级空间图片对象
 * Created by Mr'Tang on 2018/9/17.
 */

public class DynamicImageBean implements Serializable {
    private String id;
    private String image;
    private int type;//和小小的图片拼接地址和动态的不一样，4表示和小小，其他普通动态

    public static DynamicImageBean fromJsonObject(JSONObject json) {
        DynamicImageBean img=new DynamicImageBean();
        try {
            img.setImage(json.getString("i_image"));
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return img;
    }
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getImage() {
        return image;
    }
    public void setImage(String image) {
        this.image = image;
    }
    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }
}

